using System;
using System.Collections.Generic;
using System.Reflection;
using System.Windows.Forms;
using Bosphorus.Library.Dao.Facade;
using NHibernate.Cfg;

namespace Bosphorus.Integration.Jira.Thor.Dal.Helper
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Repository.Domain.Live.Loader.Load(Assembly.Load("Bosphorus.Integration.Jira.Thor.Dal"), "Bosphorus.Integration.Jira.Thor.Dal.Repository.Domain.Live.xml");
            Repository.Domain.Cache.Loader.Load(Assembly.Load("Bosphorus.Integration.Jira.Thor.Dal"), "Bosphorus.Integration.Jira.Thor.Dal.Repository.Domain.Cache.xml");
            Repository.View.Live.Loader.Load(Assembly.Load("Bosphorus.Integration.Jira.Thor.Dal"), "Bosphorus.Integration.Jira.Thor.Dal.Repository.View.Live.xml");

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new DalClientForm());
        }
    }
}